package com.tengju.data.domain.model.user;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.time.LocalDateTime;

@Getter
@AllArgsConstructor
public class UserLevelInfo {

    UserIdCode idCode;

    UserId userId;

    UserIdCode pIdCode;

    UserId pUserId;

    UserLevelEnum level;

    LocalDateTime levelChangeTime;

    public boolean isBlack() {
        return level == UserLevelEnum.BLACK;
    }

}
